feat: enable Across and deBridge swappers#12208
feat: enable Across and deBridge swappers#12208stuuagentclaw wants to merge 1 commit intoshapeshift:developfrom
Conversation
Enable VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP feature flags. Both swappers are fully implemented and wired to multiple chains: - Across: supports 20+ EVM chains including MegaETH, Scroll, Base, Arbitrum - deBridge: supports 12+ EVM chains including MegaETH, Berachain, Sonic These swappers have been in the codebase since PR shapeshift#11941 (deBridge) and earlier (Across), with chain wiring expanded in PRs shapeshift#12143 and shapeshift#12144. Enabling them adds competitive route options alongside Relay, THORChain, and Chainflip for best-price routing.
📝 WalkthroughWalkthroughTwo Vite feature flags were enabled in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.env:
- Line 367: Remove the redundant mode-specific environment variable entries for
VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP: since these flags are
already defined globally (VITE_FEATURE_ACROSS_SWAP and
VITE_FEATURE_DEBRIDGE_SWAP present in the main .env), open the environment files
for specific modes and delete any lines that set VITE_FEATURE_ACROSS_SWAP or
VITE_FEATURE_DEBRIDGE_SWAP so the global values are authoritative and no
mode-specific overrides remain.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
|
|
||
| # deBridge DLN | ||
| VITE_FEATURE_DEBRIDGE_SWAP=false | ||
| VITE_FEATURE_DEBRIDGE_SWAP=true |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Scanning .env variants for Across/deBridge feature flags..."
fd -HI '^\.env(\..+)?$' | while read -r f; do
rg -n '^(VITE_FEATURE_ACROSS_SWAP|VITE_FEATURE_DEBRIDGE_SWAP)=' "$f" || true
done
echo
echo "Expected: only .env contains these keys (set to true), and .env.* files contain no entries for them."Repository: shapeshift/web
Length of output: 359
Remove VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP from mode-specific .env.* files.
These flags are now globally enabled in .env (lines 362, 367) but still exist in .env.development or .env.production (lines 150, 152). Following the project convention, remove them from mode-specific env files to avoid redundant overrides.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.env at line 367, Remove the redundant mode-specific environment variable
entries for VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP: since these
flags are already defined globally (VITE_FEATURE_ACROSS_SWAP and
VITE_FEATURE_DEBRIDGE_SWAP present in the main .env), open the environment files
for specific modes and delete any lines that set VITE_FEATURE_ACROSS_SWAP or
VITE_FEATURE_DEBRIDGE_SWAP so the global values are authoritative and no
mode-specific overrides remain.
Description
Enable Across Protocol and deBridge DLN as active swap routes by setting their feature flags to
true.Both swappers are fully implemented and have been in the codebase for weeks:
AcrossSwapper): Integrated in earlier PRs, chain wiring expanded in feat: wire across to scroll and megaeth #12144. Supports 20+ chains with fast fill times.DebridgeSwapper): Integrated in feat: integrate sei evm chain and debridge swapper (cross-chain + same-chain) #11941, expanded to 9 additional chains in feat: wire debridge to 9 additional evm chains #12143. Solver-based cross-chain bridge + same-chain DEX aggregation.Impact
Enabling these swappers adds 2 new route providers to ShapeShift's quote comparison engine, competing alongside Relay, THORChain, Chainflip, and other active swappers for best execution.
Key chains that gain additional routes:
Across supported chains (verified via API)
Ethereum, Optimism, BNB, Polygon, Arbitrum, zkSync, Linea, Base, Scroll, Blast, Mode, Ink, Unichain, Worldchain, Monad, MegaETH, HyperEVM, Plasma, Soneium + more
deBridge supported chains (verified via API)
Ethereum, Optimism, BNB, Polygon, Arbitrum, Avalanche, Base, Linea, Sonic, Story, Flow EVM, MegaETH, Berachain, Mantle, Cronos, BOB, Gnosis, SEI + more
Risk
Medium - Enables two new swap routes globally. Both have been in the codebase behind flags and tested via their respective integration PRs. No new contracts or on-chain interaction changes.
Testing
Engineering
Operations
Summary by CodeRabbit